package net.magicalcloud.magicalcloud.view.viewImpl.activity;

import android.os.Bundle;

import net.magicalcloud.magicalcloud.R;
import net.magicalcloud.magicalcloud.adapter.CloudFilesAdapter;
import net.magicalcloud.magicalcloud.adapter.SharesAdapter;
import net.magicalcloud.magicalcloud.base.BaseActivity;
import net.magicalcloud.magicalcloud.entity.Shares;
import net.magicalcloud.magicalcloud.presenter.SharePresenter;
import net.magicalcloud.magicalcloud.view.IShareView;

import java.util.List;


public class ShareActivity extends BaseActivity<IShareView,SharePresenter> implements IShareView {
    private SharesAdapter adapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_share);

        adapter=new SharesAdapter();
       // mPresenter.showShares();

    }


    @Override
    protected SharePresenter createPresenter() {
        return new SharePresenter();
    }

    @Override
    public void setList(List<Shares> sharesList) {
        adapter.setData(sharesList);
    }

}
